
import request from '@/utils/request'
import { baseUrl } from '@/config/env';

//edit
export const edit = (row) => {
  	return request({
	    url: baseUrl+'/rest/logistics/edit',
	    method: 'post',
	    data: row
  	})
}


//删除
export const del = (id) => {
  	return request({
	    url: `${baseUrl}/rest/logistics/delete/${id}`,
	    method: 'get'
  	})
}


//获取列表
export const list = (page, size, params) => {
  	return request({
	    url: baseUrl+'/rest/logistics/list',
	    method: 'get',
	    params: {
	      	page,
		    size,
		    ...params
	    }
  	})
}